<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:with="title='文章管理',active='article'">
<div th:replace="themes/default/header::header(title='文章归档',keywords=null)"></div>
<link th:href="@{/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/font-awesome/4.7.0/css/font-awesome.min.css}" rel="stylesheet"/>
<style type="text/css">
    body{
        font-family: -apple-system, SF UI Text, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif!important;
    }
    table{
        font-size: 16px;
    }
    tr th{
        color: #fff;
        background-color: #337ab7!important;
        border-color: #DDDDDD;
    }
</style>

<body class="fixed-left">
<div class="main-content archive-page clearfix" style="margin: 0 auto;max-width: 90%;">
    <div id="wrapper">
        <div class="content-page">
            <div class="content">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12">
                            <h3 class="page-title">
                                <span th:if="${type == 'category'}">类别</span><span th:if="${type == 'tag'}">标签</span>[<span th:text="${name}" style="color: #d58512"/>]--归档列表</h3>
                        </div>
                        <div class="col-md-12" style="border: 0px solid red;">
                            <table class="table table-striped table-responsive">
                                <thead>
                                <tr >
                                    <th >序</th>
                                    <th class="info" style="min-width: 600px;">文章标题</th>
                                    <!--<th >发布时间</th>-->
                                    <th class="info">更新时间</th>
                                    <th class="info" style="min-width: 200px;">所属分类</th>
                                    <th class="info" style="min-width: 200px;">所属标签</th>
                                </tr>
                                </thead>
                                <tbody>
                                <th:block th:each="post,postStat : ${articles.list}">
                                    <tr th:cid="${post.cid}">
                                        <td><th:block th:text="${postStat.index+1}"/></td>
                                        <td>
                                            <a th:href="@{'/article/'+${post.cid}}" th:text="${post.title}"></a>
                                        </td>
                                        <!--<td><th:block th:text="${commons.fmtdate(post.created, 'yyyy-MM-dd HH:mm:ss')}"/></td>-->
                                        <td><th:block th:text="${commons.fmtdate(post.modified, 'yyyy-MM-dd')}"/></td>
                                        <td><th:block th:text="${post.categories}"/></td>
                                        <td><th:block th:text="${post.tags}"/></td>
                                    </tr>
                                </th:block>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="lists-navigator clearfix">
        <div th:replace="comm/macros::pageNav2(${articles},'上一页','下一页',${type}+'/'+${name})"></div>
    </div>
</div>
<div th:replace="themes/default/footer::footer"></div>
<script th:src="@{/jquery/2.2.3/jquery.min.js}"></script>

<script th:src="@{/admin/js/base.js}"></script>
<script th:src="@{/admin/js/baseContextPath.js}"></script>
<script th:src="@{/bootstrap/3.3.7/js/bootstrap.min.js}"></script>

<script type="text/javascript">
    /*<![CDATA[*/

    /*]]>*/
</script>
</body>
</html>